package com.zyf.lj.service;

import com.zyf.lj.entity.News;

import java.util.List;

public interface NewsService {
    List<News> getAllNews();
    News createNews(News news);
    News getNewsById(Integer id);
    List<News> getLatestNews(int limit);
    
    List<News> getNewsByUserId(Integer userId);
    boolean updateNews(News news);
    boolean deleteNews(Integer id, Integer userId);
} 